package com.lrs.java.j2se_self.ioReview;
import java.io.*;
public class TestPrintStream1 {
	public static void main(String[] args){
		PrintStream ps = null;
		int ln = 0;
		try{
			FileOutputStream fs = new FileOutputStream("C:\\test1.java");
			ps = new PrintStream(fs);
			
		}catch(FileNotFoundException e){
			e.printStackTrace();
		}
		if(ps != null){
			System.setOut(ps);
		}
		for(int i= 0 ; i < 60000 ; i++){
			System.out.print((char)i + " ");
			if(ln++ >100){
				System.out.println();
				ln = 0;
			}
		}
	}
}
